<template>
    <div>
        <p>son2</p>
    </div>
</template>

<script setup>
import eventBus from './eventBus';
import { onMounted } from 'vue'
// onMounted(() => {
eventBus.on('myevent', (data) => {
    console.log('data', data);

})
// })

</script>
<style scoped></style>